PORTNAME=	accountsservice
PORTVERSION=	23.13.9
CATEGORIES=	sysutils devel
MASTER_SITES=	https://www.freedesktop.org/software/${PORTNAME}/

MAINTAINER=	desktop@FreeBSD.org
COMMENT=	D-Bus interface for user account query and manipulation
WWW=		https://gitlab.freedesktop.org/accountsservice/accountsservice

LICENSE=	GPLv3+
LICENSE_FILE=	${WRKSRC}/COPYING

BUILD_DEPENDS=	dbus>0:devel/dbus
LIB_DEPENDS=	libpolkit-gobject-1.so:sysutils/polkit \
		libconsolekit.so:sysutils/consolekit2

USES=		cpe gettext gnome localbase:ldflags meson pkgconfig tar:xz
CPE_VENDOR=	freedesktop
USE_GNOME=	glib20 intltool libxslt introspection:build
USE_LDCONFIG=	yes
MESON_ARGS=	-Dgdmconffile=${LOCALBASE}/etc/gdm/custom.conf \
		-Dlightdmconffile=${LOCALBASE}/etc/lightdm/lightdm.conf \
		-Dlocalstatedir=/var \
		-Dsystemdsystemunitdir=no

.include <bsd.port.mk>
